All licenses are stored in the <efadatadir>/licenses file.
The restore function does not change since the files will not be backed up during the backup. In this way, it ensures that a backup from one server can be restored to another, but licenses are not changed.
Note
When you run any upgrade or node-replacement procedure, the license directory remains same and the licenses are retained.